package org.mall.convert.promotion.admin;

import org.mall.modules.pojo.product.bo.ProductSpuBO;
import org.mall.modules.pojo.promotion.admins.AdminsProductRecommendPageVO;
import org.mall.modules.pojo.promotion.admins.AdminsProductRecommendVO;
import org.mall.modules.pojo.promotion.bo.ProductRecommendBO;
import org.mall.modules.pojo.promotion.bo.ProductRecommendPageBO;
import org.mall.modules.pojo.promotion.users.UsersProductRecommendVO;
import org.mall.modules.product.entities.CommoditySpu;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ProductRecommendConvert {

    ProductRecommendConvert INSTANCE = Mappers.getMapper(ProductRecommendConvert.class);

    @Mappings({})
    AdminsProductRecommendVO convert(ProductRecommendBO bannerBO);

    @Mappings({})
    AdminsProductRecommendPageVO convert(ProductRecommendPageBO result);

    @Mappings({})
    UsersProductRecommendVO convert(ProductSpuBO productSpu);


    //    @Mappings({})
    //    List<UsersProductRecommendVO> convertList(List<ProductRecommendBO> banners);

}
